<template>
    <div>
       <List :path="path"></List>
    </div>
</template>

<script>
    import List from './components/List'
    import {fetch} from '@/utils'
    export default {
        data() {
            return {
                path: 'coming-soon'
            }
        },
        components: {
            List
        },
        created() {
            this.getWillPlayFimls();
        },
        methods: {
            // 获取即将上映电影
            getWillPlayFimls() {
                const url = '/film/coming-soon';
                const data = {
                    page: 1,
                    count: 7
                };
                fetch(url, data, (res)=> {
                    this.list = res.films;
                })
            }
        }
    }
</script>

<style scoped lang="less">

</style>